import apis from './mockApis';   // 引入局部的数据模拟文件
import creditData from './credit-data'
import anaApis from './anaApis.js'
const Mock = require('mockjs')
Mock.setup({
    timeout: '200-2000'
})
const baseUrl = '/api'
const mocks = [
  ...apis,
  ...creditData,
  ...anaApis
  ]
mocks.map(e => {
  // console.log(e.method+"=>"+baseUrl+e.url)
  Mock.mock(new RegExp(baseUrl+e.url), e.method, e.data)
})

export default Mock
